<template>
  <div>
    <div>
      <h3>模拟这里是一张图片</h3>
      <img :src="imgUrl" class="img-style"/>
    </div>
    <h4>
      <slot name="img-name"></slot>
    </h4>
    <keep-alive></keep-alive>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        name: "ImgVm",
        imgUrl: require("../../static/img/111.png")
      }
    }
  }
</script>

<style scoped>
  .img-style {
    overflow: hidden;
    height: 250px;
    width: 80%;
    margin: 5px;
    border: 1px #2c3e50 solid;
    padding: 10px;
    background-color: white;
  }
</style>
